﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<!--[if lt IE 9]>
	<script type="text/javascript" src="assets/lib/html5shiv.js"></script>
	<script type="text/javascript" src="assets/lib/respond.min.js"></script>
	<![endif]-->
	<link rel="stylesheet" type="text/css" href="assets/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="assets/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="assets/lib/Hui-iconfont/1.0.8/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="assets/skin/green/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="assets/css/normBuild.css" />
	<title>指标体系设计软件</title>
</head>
<body class="big-page">
<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl">
            <img src="assets/images/admin-login-bg.jpg" class='imgLogo' alt="logo图">
            <a class="logo navbar-logo f-l mr-10 hidden-xs" href="#javascript:;">指标体系设计软件</a>
			<nav class="nav navbar-nav">
				<ul class="cl">
                    <li><a href="index.html"><i class="Hui-iconfont Hui-iconfont-home"></i> 首页</a></li>
					<li><a href="normList.html" class="active"><i class="Hui-iconfont Hui-iconfont-manage2"></i> 评估指标模块</a></li>
                    <li><a href="systemList.html"><i class="Hui-iconfont Hui-iconfont-fenlei"></i> 评估体系模块</a>
                    </li>
                    <li><a href="versionList.html"><i class="Hui-iconfont Hui-iconfont-middle"></i> 体系版本模块</a></li>

				</ul>
			</nav>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<li>超级管理员</li>
					<li class="dropDown dropDown_hover">
						<a href="#" class="dropDown_A">admin <i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li>
							<li><a href="#">切换账户</a></li>
							<li><a href="#">退出</a></li>
						</ul>
					</li>
					<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<!--左侧-->
<aside class="Hui-aside">
    <ul>
        <li class="active">
            <a href="normBuild.html" title="新增"><i class="Hui-iconfont Hui-iconfont-add"></i></a>
        </li>
        <li>
            <a href="javascript:;" onclick="systemDel()" title="删除"><i class="Hui-iconfont Hui-iconfont-del2"></i></a>
        </li>
        <li class="detialBox" type="1">
            <a href="javascript:;"  title="编辑"><i class="Hui-iconfont Hui-iconfont-edit2"></i></a>
        </li>
        <li>
            <a href="normList.html" title="查看"><i class="Hui-iconfont Hui-iconfont-yuedu"></i></a>
        </li>
        <li class="detialBox" type="2">
            <a href="#javascript:;" title="详情"><i class="Hui-iconfont Hui-iconfont-youhuiquan"></i></a>
        </li>
    </ul>
</aside>
<!--主体-->
<section class="Hui-article-box">
	<div class="container">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
            <form method="post" class="form form-horizontal" id="form-norm-add" novalidate="novalidate">
                <div class="content">
                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>指标名称：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg-8">
                            <input type="text" class="input-text valid" value="" placeholder="" id="zbName" name="zbName" aria-required="true" aria-invalid="false">
                            <label id="zbName-error" class="error valid" for="zbName" style="display: block;"></label>
                        </div>
                    </div>
                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>评估对象：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg8">
                            <input type="text" class="input-text valid" value="" placeholder="" id="pgTarget" name="pgTarget" aria-required="true" aria-invalid="false">
                            <label id="pgTarget-error" class="error valid" for="pgTarget" style="display: block;"></label>
                        </div>
                    </div>
                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>作战能力：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg8">
                            <input type="text" class="input-text valid" value="" placeholder="" id="zzAbility" name="zzAbility" aria-required="true" aria-invalid="false">
                            <label id="zzAbility-error" class="error valid" for="zzAbility" style="display: block;"></label>
                        </div>
                    </div>

                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>权重系数：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg8">
                            <input type="number" max=1 min=0 step=0.1 class="input-text valid" value="" placeholder="" id="weight" name="weight" aria-required="true" aria-invalid="false">
                            <label id="weight-error" class="error valid" for="weight" style="display: block;"></label>
                        </div>
                    </div>
                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>数据类型：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg8">
                            <input type="text" class="input-text valid" value="" placeholder="" id="dataType" name="dataType" aria-required="true" aria-invalid="false">
                            <label id="dataType-error" class="error valid" for="dataType" style="display: block;"></label>
                        </div>
                    </div>
                    <div class="row col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4"><span class="c-red">*</span>评估项：</label>
                        <div class="formControls col-xs-12 col-sm-12 col-md-8 col-lg8">
                            <input type="text" class="input-text valid" value="" placeholder="" id="pgItem" name="pgItem" aria-required="true" aria-invalid="false">
                            <label id="pgItem-error" class="error valid" for="pgItem" style="display: block;"></label>
                        </div>
                    </div>
                </div>
                <div class="row cl">
                    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4">
                            <span class="c-red">*</span>评估要点：
                        </label>
                    </div>
                    <div class="formControls col-xs-12 col-sm-12 col-md-11 col-lg-11">
                        <textarea name="pgPoint" id="pgPoint" cols="" rows="" class="textarea valid" placeholder="说点什么...最少输入10个字符"></textarea>
                        <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
                        <label id="pgPoint-error" class="error valid" for="pgPoint" style="display: block;"></label>
                    </div>
                </div>
                <div class="row cl">
                    <div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
                        <label class="form-label col-xs-12 col-sm-12 col-md-4 col-lg-4">
                            <span class="c-red">*</span>评估标准：
                        </label>
                    </div>

                    <div class="formControls col-xs-12 col-sm-12 col-md-11 col-lg-11">
                        <textarea name="pgStandard" cols="" id="pgStandard" rows="" class="textarea valid" placeholder="说点什么...最少输入10个字符"></textarea>
                        <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
                        <label id="pgStandard-error" class="error valid" for="pgStandard" style="display: block;"></label>
                    </div>
                </div>
                <div class="row cl">
                    <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
                        <label class="form-label label-big">
                            <span class="c-red">*</span>评估数据来源描述：
                        </label>
                    </div>
                    <div class="formControls col-xs-11 col-sm-11">
                        <textarea name="dataSource" id="dataSource" cols="" rows="" class="textarea valid" placeholder="说点什么...最少输入10个字符" onblur="textarealength(this,100)"></textarea>
                        <p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
                        <label id="dataSource-error" class="error valid" for="dataSource" style="display: block;"></label>
                    </div>
                </div>
                <div class="row cl" style="padding-bottom: 20px;">
                    <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
                        <input class="btn btn-primary radius btn-build" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;" style="float: right;">
                    </div>
                    <div class="col-xs-12 col-sm-12 col-md-2 col-lg-2"></div>
                    <div class="col-xs-12 col-sm-12 col-md-5 col-lg-5">
                        <input class="btn btn-primary radius btn-build-cancle" type="reset" value="&nbsp;&nbsp;取消&nbsp;&nbsp;">
                    </div>
                </div>
            </form>
        </div>
    </div>
</section>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="assets/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="assets/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="assets/js/H-ui.min.js"></script>
<script type="text/javascript" src="assets/js/H-ui.admin.js"></script>
<script type="text/javascript" src="assets/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
<script type="text/javascript" src="assets/lib/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="assets/lib/jquery.validation/1.14.0/messages_zh.js"></script>
<!--请在下方写此页面业务相关的脚本-->
<script>
$(function(){
    $("#form-norm-add").validate({
        rules:{
            zbName:{
                required:true,
                // minlength:4,
                // maxlength:16
            },
            pgTarget:{
                required:true,
            },

            zzAbility:{
                required:true,
            },
            weight:{
                required:true,
            },
            dataType:{
                required:true,
            },
            pgItem:{
                required:true,
            },
            pgPoint:{
                required:true,
                minlength:10,
                maxlength:100
            },
            pgStandard:{
                required:true,
                minlength:10,
                maxlength:100
            },
            dataSource:{
                required:true,
                minlength:10,
                maxlength:100
            }
        },
        onkeyup:false,
        focusCleanup:true,
        success:"valid",
        submitHandler:function(form){
            $(form).ajaxSubmit({
                type: 'post',
                url: "/system/addItem" ,
                success: function(data){
                    layer.msg('添加成功!',{icon:1,time:1000});
                },
                error: function(XmlHttpRequest, textStatus, errorThrown){
                    layer.msg('添加指标失败！',{icon:1,time:1000});
                }
            });
        }
    });
});
</script>
</body>
</html>